/**
 * Created on 2007-04-22 12:20
 */
package game.media.gfx;

import java.awt.Color;

/**
 * @author David Wallin
 * 
 * Abstract super class for the blocks' states
 */
public abstract class BlockState
{
	/**
	 * Reference to the entity holding this state
	 */
	protected Entity			m_Entity;
	/**
	 * Singleton reference to the render manager for optimization
	 */
	protected RenderManager		m_RenderManager;
	
	/**
	 * Constructor, initializes members
	 */
	public BlockState(Entity entity)
	{
		m_Entity = entity;
		m_RenderManager = RenderManager.INSTANCE;
	}
	
	/**
	 * Implements the state's way of drawing itself to the screen
	 * 
	 * @param color the color of the block
	 */
	public abstract void draw(Color color);
}
